import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-05-08
 * Time: 23:41
 */
public class Main {
    public static int func(int[] array) {
        Arrays.sort(array);
        return (array.length) / 2;
    }
    public static void main(String[] args) {
        int[] array = new int[]{1,2,2,2,1};
        System.out.println(func(array));

    }
}
